import request from '@/utils/request'

// 查询班型属性列表
export function listModelAttr(query) {
  return request({
    url: '/edu/modelAttr/list',
    method: 'get',
    params: query
  })
}

// 查询班型属性详细
export function getModelAttr(attrId) {
  return request({
    url: '/edu/modelAttr/' + attrId,
    method: 'get'
  })
}

// 新增班型属性
export function addModelAttr(data) {
  return request({
    url: '/edu/modelAttr',
    method: 'post',
    data: data
  })
}

// 修改班型属性
export function updateModelAttr(data) {
  return request({
    url: '/edu/modelAttr',
    method: 'put',
    data: data
  })
}

// 删除班型属性
export function delModelAttr(attrId) {
  return request({
    url: '/edu/modelAttr/' + attrId,
    method: 'delete'
  })
}

// 导出班型属性
export function exportModelAttr(query) {
  return request({
    url: '/edu/modelAttr/export',
    method: 'get',
    params: query
  })
}